package org.burning.crm.settings.service;

import org.burning.crm.settings.domain.User;

import java.util.List;
import java.util.Map;

public interface UserService {
    User queryUserByLoginActAndPwd(Map<String,Object> map);

    List<User> queryAllUsers();

    /**
     * 根据邮箱查找用户
     * @param email
     * @return int
     */
    int queryUserByLoginEmail(String email);


    /**
     * 根据邮箱查找用户
     * @param phone
     * @return int
     */
    User queryUserByLoginPhone(String phone);

    /**
     * 根据邮箱获取用户
     * @param email
     * @return
     */
    User getUserByEmail(String email);

    /**
     * 根据账号查询用户
     * @param loginAct
     * @return
     */
    User queryUserByLoginAct(String loginAct);

    /**
     * 添加用户
     * @param user
     */
    void addUser(User user);
}
